from datetime import  datetime
file="lilizong4.txt"
with open(file,"w") as f:
    dt=datetime.strptime("2020/6/28","%Y/%m/%d")
    print(dt)
    result=str("time:"+str(dt.date()))
    f.write(result)









# from datetime import datetime
# file = "file2.txt"
# with open(file, 'w') as f:
#     dt = datetime.strptime("2020/6/25", '%Y/%m/%d')
#     result=str("time:"+str(dt.date()))
#     f.write(result)